import request from '@/utils/request'

// 查询开通城市列表
export function listTopencity(query) {
  return request({
    url: '/system/topencity/list',
    method: 'get',
    params: query
  })
}

// 查询开通城市详细
export function getTopencity(id) {
  return request({
    url: '/system/topencity/info/' + id,
    method: 'get'
  })
}

// 新增开通城市
export function addTopencity(data) {
  return request({
    url: '/system/topencity/add',
    method: 'post',
    data: data
  })
}

// 修改开通城市
export function updateTopencity(data) {
  return request({
    url: '/system/topencity/update',
    method: 'put',
    data: data
  })
}

// 删除开通城市
export function delTopencity(id) {
  return request({
    url: '/system/topencity/delete/' + id,
    method: 'delete'
  })
}
